package cn.sumpu.toolkit.sms;

//import java.util.HashMap;
//import java.util.Map;

import cn.sumpu.toolkit.common.http.HttpProxy;

public class SmsProxy {

	public static String send() {
		try {
//			Map<String, String> params = new HashMap<String, String>();
//			params.put("spid", "nick");
//			params.put("pwd", "nick");
//			params.put("mobiles", "18717759159,13564369099");
//			params.put("content", "借用手机测试短信接口-张瑜");
			String content = java.net.URLEncoder.encode("借用手机测试短信接口-张瑜",
					"UTF-8");// 电信：13331821979联通：18621872223
			// account=test106dxA / password=123456
			String data = HttpProxy
					.doGet("http://ws.9orange.net:8080/NOSmsPlatform/server/SMServer.htm?types=send&account=coolgy0933&password=123456&destmobile=18717759159&msgText="
							+ content);
			System.out.println(data);
			return data;
		} catch (Exception e) {
			e.printStackTrace();
			return null;
		}
	}
}
